package dynamicJsonVerifyer.verifyers.baseDataType;

import com.alibaba.fastjson.JSONObject;
import dynamicJsonVerifyer.Const;
import dynamicJsonVerifyer.verifyers.AbsTextVerifyer;
import dynamicJsonVerifyer.verifyers.FieldTypeVerifyer;

public class DateVerifyer extends FieldTypeVerifyer {
    @Override
    protected String getType() {
        return Const.BaseVerifyDataType.date;
    }

    @Override
    protected boolean verifyType(JSONObject verifyMetadata, Object appointVaildData) {
        return appointVaildData instanceof Integer || appointVaildData instanceof Long;
    }
}
